#include <iostream>
#include <unistd.h>
#define ARR_LEN 512
int main(){
    char ar[ARR_LEN];
    int n=0;
    while((n=read(0,ar,128))>0){
        if(ar[0]=='#')
            break;
        else if(write(1,ar,n)!=-1);
    }
    return 0;
}
